home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-27 | 2.3 KB | 87 lines | [TEXT/KAHL] |
- //----------------------------------------------------------------------------------
- // File : dynTest.r
- // Date : Dec 28, 1994
- // Author : Jim Stout
- // :
- // Purpose : rez source for dynMenu.c
- //----------------------------------------------------------------------------------
- #define SystemSevenOrLater 1
-
- #include <Types.r>
- #include "jimsCDEF.h"
-
- // this resource will color dialog id=210 - and is needed to allow the 'cctb' to work
- // change wContentColor from white to see the control drawn as a "3D control".
-
- resource 'dctb' (210, purgeable) {
- {
- // /* [1] */ wContentColor, 52428, 52428, 52428, // gray background
- /* [1] */ wContentColor, 65535, 65535, 65535, // white background
- /* [2] */ wFrameColor, 0, 0, 0,
- /* [3] */ wTextColor, 0, 0, 0,
- /* [4] */ wHiliteColor, 0, 0, 0,
- /* [5] */ wTitleBarColor, 65535, 65535, 65535
- }
- };
-
- resource 'DLOG' (210, "Dynamic Menu Demo", purgeable) {
- {44, 20, 159, 320}, movableDBoxProc, visible, nogoAway, 0x0, 210,
- "Dynamic Menu Demo",
- #if SystemSevenOrLater
- centerMainScreen
- #endif
- };
-
- resource 'DITL' (210, purgeable) {
- {
- /* [1] */ {85, 227, 105, 287}, Button { enabled, "OK" },
- /* [2] */ {85, 154, 105, 214}, Button { enabled, "Cancel" },
- /* [3] */ {20, 20, 40, 240}, Control { enabled, 210 },
- /* [4] */ {50, 20, 66, 85}, RadioButton { enabled, "Animal" },
- /* [5] */ {50, 90, 66, 175}, RadioButton { enabled, "Vegetable" },
- /* [6] */ {50, 180, 66, 250}, RadioButton { enabled, "Mineral" },
- }
- };
-
- resource 'CNTL' (210, purgeable) {
- {20, 20, 40, 240},
- popupTitleRightJust, // title justification
- visible,
- popupInsetFrame+90, // extended variation + title width
- 210, // menuId
- 16*popUp+popupFixedWidth, // procId
- 0, // refCon
- "Select Item:" // Control Title
- };
- resource 'STR#' (210, purgeable) {
- {
- /* [1] */ "Aardvark";
- /* [2] */ "Baboon";
- /* [3] */ "Coelecanth";
- /* [4] */ "Dingo";
- /* [5] */ "Emu";
- /* [6] */ "Fisher"
- }
- };
- resource 'STR#' (211, purgeable) {
- {
- /* [1] */ "Artichoke";
- /* [2] */ "Beet";
- /* [3] */ "Cabbage";
- /* [4] */ "Dasheens";
- /* [5] */ "Eggplant";
- /* [6] */ "Fennel"
- }
- };
- resource 'STR#' (212, purgeable) {
- {
- /* [1] */ "Antimony";
- /* [2] */ "Beryllium";
- /* [3] */ "Cadmium";
- /* [4] */ "Dolomite";
- /* [5] */ "Emery";
- /* [6] */ "Feldspar"
- }
- };
-
-